import { Injectable } from '@angular/core';
import { _HttpClient } from '@delon/theme';
import { Observable } from 'rxjs';

@Injectable({
  providedIn: 'root'
})
export class WithdrawService {

  constructor(private http: _HttpClient) {}
  
  queryList(): Observable<any> {
    const url = "/oprShopStatement/auditList?pageStart=1&pageSize=25&auditType=0";
    return this.http.get(url); 
  }

  withdrawable(_ids: any): Observable<any> {
    const url = "/oprShopStatement/audit";
    return this.http.put(url, {
      ids: _ids,
      info: "审核通过",
      type: 2
    }); 
  }
}
